class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks, :force => true do |t|
      t.column :title,    :string,    :null => false
      t.column :begin_at, :datetime,  :null => false
      t.column :end_at,   :datetime,  :null => false
      t.column :note,     :text,      :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
